package Demo_0401;

/**
 * @author:zhengyilong
 * @email:1797344574@qq.com
 * @phone:13479394730
 * @desc:
 * @DateTime:2022/4/8 8:35
 **/
public class Test {
    public static void main(String[] args) {
        Integer [] arr = {1,2,3,4,5,6,7,8,9,10};
        SqListClass<Integer> list = new SqListClass<>();

        list.CreateList(arr);
        System.out.println(list);

        list.Add(0);
        System.out.println(list);

        System.out.println(list.size());

        list.SetSize(10);
        System.out.println(list);

        Integer Elem = list.GetElem(3);
        System.out.println(Elem);

        list.SetElem(2,9);
        System.out.println(list);

        int i = list.GetNo(9);
        System.out.println(i);

        list.swap(2,7);
        System.out.println(list);

        list.Insert(2,6);
        System.out.println(list);

        list.Delete(3);
        System.out.println(list);
    }
}

